﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lwm.x10c.Intermediate
{
    public class Operand
    {
        public bool IsLocal { get; set; }
        public int LocalSlot { get; set; }
        public int GlobalVariable { get; set; }

        public void Dump(StringBuilder sb)
        {
            if (this.IsLocal)
                sb.Append("#" + this.LocalSlot);
            else
                sb.Append("*" + this.GlobalVariable);
        }
    }
}
